package com.team.book.mapper;

import com.team.book.domain.BorrowedRecord;
import com.team.book.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * Created by haolw on 4/22/17.
 *
 * @version 0.0.1
 */
@Component
public interface UserMapper {

    User findUserByUsername(String username);

    User getById(Long id);

    int insert(User user);

    int update(User user);

    int updatePwd(User user);

    List<User> query(Map<String,Object> map);

    long count(Map<String,Object> map);

}
